package com.yuandengta.yomall.product.feign;

import com.yuandengta.common.to.es.SkuEsModel;
import com.yuandengta.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * Search 检索远程服务接口 {@link SearchFeignService}
 *
 * @author Kevin
 * @email: 178676392@qq.com
 */
@FeignClient("yomall-search")
public interface SearchFeignService {

    /**
     * 商品上架
     * @param skuEsModelList
     * @return
     */
    @PostMapping("/search/save/product")
    R productUp(@RequestBody List<SkuEsModel> skuEsModelList);
}
